package com.mscsoft.brainpower.server.dao;

import com.mscsoft.brainpower.server.domain.GameFile;

import org.apache.ibatis.annotations.*;

@Mapper
public interface MusicFileDao {
    @Select("select musicname fileName,music data from music where musicname=#{musicname}")
    GameFile queryMusicFileByMusicName(@Param("musicname") String musicname);

    @Insert("INSERT INTO music (musicname,music) VALUES(#{musicname},#{music})")
    void insertNewMusic(@Param("musicname") String musicname,@Param("music") byte[] music);
}
